package com.itcast.homework.controller;

import cn.hutool.core.io.IoUtil;
import com.itcast.homework.pojo.Log;
import com.itcast.homework.pojo.Result;
import com.itcast.homework.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

@RestController
@RequestMapping(value = "/logs")
public class LogController {
    @Autowired
    private LogService logService;
    @RequestMapping("/log")
    private Result list(){
        Result list = (Result)logService.list();
        return list;
    }

}
